package com.example.demo.controller;

import com.example.demo.pojo.RoomType;
import com.example.demo.service.impl.RoomTypeServiceImpl;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
import io.swagger.annotations.Api;

import javax.annotation.Resource;

/**
 * (RoomType)表控制层
 *
 * @author Jerry
 * @since 2025-01-19 15:57:36
 */
@RestController
@RequestMapping("roomType")
@Api(value = "(RoomType)",tags = "(RoomType)接口API")
public class RoomTypeController {
    /**
     * 服务对象
     */
    @Resource
    private RoomTypeServiceImpl roomTypeServiceImpl;

    /**
     * 一次性全部查询
     *
     * @return 查询结果
     */
    @GetMapping("/selectAll")
    public Map<String, Object> selectAll() {
        return roomTypeServiceImpl.selectAll();
    }

}

